package com.zyong.design.pattern.facade.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: HomeTheaterFacade
 * @author: zyong
 * @create: 2024-04-07 23:28
 */
public class HomeTheaterFacade {
    private DvdPlayer dvdPlayer = DvdPlayer.getInstance();
    private Popcorn popcorn = Popcorn.getInstance();
    private Projector projector = Projector.getInstance();
    private Screen screen = Screen.getInstance();
    private Stereo stereo = Stereo.getInstance();
    private TheaterLight theaterLight = TheaterLight.getInstance();

    public void ready() {
        popcorn.on();
        popcorn.pop();
        screen.down();
        projector.on();
        stereo.on();
        theaterLight.on();
        dvdPlayer.on();
    }
}
